#REM
#REM Removes Default Web Site and Default Application Pools
#REM Last Updated By: Nate Bruneau (nathbr) | 8/6/2009
#REM

Write-Host -ForegroundColor Yellow "IIS: Removing Default Web Site and App Pools for  $env:computername."

& "$env:windir\system32\inetsrv\APPCMD" delete site "Default Web Site" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete site "SITE_1" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete site "SITE_2" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete site "SITE_3" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete site "SITE_4" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete site "SITE_5" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete apppool "Classic .NET AppPool" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete apppool "DefaultAppPool" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete apppool "ASP.NET v4.0" | Out-Null
& "$env:windir\system32\inetsrv\APPCMD" delete apppool "ASP.NET v4.0 Classic" | Out-Null

Write-Host -ForegroundColor Yellow "IIS: Removing Default Web Site and App Pools for  $env:computername. COMPLETED"